<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddStateToUserPoint extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('t_user_points', function (Blueprint $table) {
            $table->string('objTypeName')->nullable()->comment('类型名称');
            $table->string('state')->nullable()->comment('状态：主要是针对提现和积分支付');
            $table->string('stateName')->nullable()->comment('状态');
            $table->integer('ok')->default(1)->comment('是否算在积分统计中:1是|2否');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('t_user_points', function (Blueprint $table) {
            //
        });
    }
}
